<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>jquery-dom结构</title>
</head>
<body>
<div id="box">
    <div id="test">1</div>
</div>
</body>
<script src="../../vendor/jquery.js"></script>
<script>
    var div1 = $('<div></div>').text('hello').addClass('box').attr('id','message');
    $('#box').append(div1);

   // $('#test').remove();

    var div0 = $('<div></div>').text('0')
    var div2 = $('<div></div>').text('2')
    $('#test').before(div0);
    $('#test').before(div2);




</script>
</html>